<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
>

<!-- 导入公有的header -->
<head th:include="common/head::header"/>


<body class="hold-transition skin-blue sidebar-mini">
    <!-- =============================================== -->
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">

                <Irca:ircaButton text="从头开始播放" onclick="playFromStart();" ico="fa  fa-play" continuity="false" class="btn btn-block btn-success btn-lg"></Irca:ircaButton>

                <Irca:ircaButton text="从当前页开始播放" onclick="playFromCurPage();" ico="fa  fa-external-link" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>

                <Irca:ircaButton text="结束播放" onclick="endPlay();" ico="fa  fa-eye-slash" continuity="false" class="btn btn-block btn-warning btn-lg"></Irca:ircaButton>

                <Irca:ircaButton text="下一个" onclick="next();" ico="fa fa-arrow-right" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>

                <Irca:ircaButton text="上一个" onclick="previous();" ico="fa fa-arrow-left" continuity="false" class="btn btn-block btn-primary btn-lg"></Irca:ircaButton>

                <Irca:ircaButton text="退出播放程序" onclick="exitPlayer();" ico="fa fa-power-off" continuity="false" class="btn btn-block btn-danger btn-lg"></Irca:ircaButton>
            </div>
            <!-- /.col -->
        </div>
    </section>

    <!-- /.content -->
    <script type="application/javascript">

        //从头开始播放
        function playFromStart(){
            parent.sendPPTCmd('PLAY_FROM_ONE_CMD','-1',null);
        }

        //从当前页开始播放
        function playFromCurPage(){
            parent.sendPPTCmd('PLAY_CUR_CMD','-1',null);
        }
        //结束播放
        function endPlay(){
            parent.sendPPTCmd('PLAY_END_CMD','-1',null);
        }
        //下一个
        function next(){
            parent.sendPPTCmd('NEXT_CMD','-1',null);
        }
        //上一个
        function previous(){
            parent.sendPPTCmd('PREVIOUS_CMD','-1',null);
        }
        //退出播放器
        function exitPlayer(){
            parent.sendPPTCmd('EXIT_PLAYER_CMD','-1',null);
        }
    </script>
</body>
</html>
